<?php use_helper('jQuery')?>

<div class="categories-menu span-24">
    <?php 
        $i = 1;
        foreach ($categories as $category): 
    ?>
        <div class="<?php echo $i==12 ? 'second-row-first' : ''?>">
            <?php echo jq_link_to_remote(
                '<b>'.$category->getName().'</b>',
                array(
                    'update' => 'main-content',
                    'url'    => url_for(
                        in_array($category->getId(), $sf_data->getRaw('categories_done')) ? 'nominaciones_edit':'nominaciones_new', $category
                    ),
                    'before' => '',
                    'complete' => '',
                    'script' => true
                ), array(
                    'class' => ''
                )); 
            ?>
        </div>
    <?php 
        $i++;
        endforeach; 
    ?>
</div>